//
//  HMNetWorkTool.h
//  SinaWeiBo
//
//  Created by WGP on 16/4/10.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef NS_ENUM(NSInteger,HMNetWorkError)
{
    HMNetWorkErrorOfAccessTokenEmpty = -1,
    HMNetWorkErrorOfUidEmpty = -2,
    HMNetWorkErrorOfRepeateLoadStatus = -3,
};

@interface HMNetWorkTool : AFHTTPSessionManager

@property(nonatomic,assign)HMNetWorkError errorType;
+(instancetype)sharedNetWorkTool;
-(NSError *)errorWith:(HMNetWorkError)errorType;

@end
